import KuaishouCrawler from '../mediaPlatform/kwai/core';

class CrawlerFactory {
    static CRAWLERS: any = {
        // "xhs": XiaoHongShuCrawler,
        // "dy": DouYinCrawler,
        "ks": KuaishouCrawler,
        // "bili": BilibiliCrawler,
        // "wb": WeiboCrawler
    }

    static createCrawler(platform: string) {
        if (this.CRAWLERS[platform]) {
            return new this.CRAWLERS[platform]();
        } else {
            console.log(`${platform} is no achieve`)
        }
    }
}

export default CrawlerFactory;